//
//  TestProblem389.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/19.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import UIKit

import XCTest
@testable import LeetCode

class TestProblem389: XCTestCase {
    
    var problem = Problem389()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem389_Case1() throws {
        XCTAssertEqual(problem.findTheDifference("abcd", "abcde"), "e")
    }
    
    func testProblem389_Case2() throws {
        XCTAssertEqual(problem.findTheDifference("", "y"), "y")
    }
    
    // MARK: - 排序
    func testProblem389_2_Case1() throws {
        XCTAssertEqual(problem.findTheDifference2("abcd", "abcde"), "e")
    }
    
    func testProblem389_2_Case2() throws {
        XCTAssertEqual(problem.findTheDifference2("", "y"), "y")
    }
}
